package com.zufe.khw;

public class Dog {
    private String color;
    private String bread;

    public Dog() {
    }

    public Dog(String color, String bread) {
        this.color = color;
        this.bread = bread;
    }

    /**
     * 获取
     * @return color
     */
    public String getColor() {
        return color;
    }

    /**
     * 设置
     * @param color
     */
    public void setColor(String color) {
        this.color = color;
    }

    /**
     * 获取
     * @return bread
     */
    public String getBread() {
        return bread;
    }

    /**
     * 设置
     * @param bread
     */
    public void setBread(String bread) {
        this.bread = bread;
    }

    public void eat(){
        System.out.println(this.color + "的" + this.bread + "狗在吃骨头");
    }

    public void lookHome(){
        System.out.println(this.color + "的" + this.bread + "狗在看家");
    }
}
